package com.example.mqttmanage.service;



import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mqttmanage.domain.base.ResponseResult;
import com.example.mqttmanage.domain.device.Device;

import java.util.List;

public interface IDeviceService extends IService<Device> {

    ResponseResult<Page<Device>> selectPageDevice(Long pageNum, Long pageSize, Device device);

    ResponseResult<Device> insertDevice(Device device);

    ResponseResult<Device> selectById(Long id);

    ResponseResult<Device> updateDevice(Device device);

    ResponseResult<String> deleteById(Long id);

    ResponseResult<String> deleteBatch(List<Long> ids);
}